package com.black.apartment.service.impl;

import com.black.apartment.domain.Area;
import com.black.apartment.mapper.AreaMapper;
import com.black.apartment.service.IAreaService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AreaServiceImpl implements IAreaService {
    @Resource
    AreaMapper areaMapper;
    @Override
    public List<Area> getAddress(Integer areaId, Byte areaType) {
        List<Area> address = areaMapper.getAddress(areaId, areaType);
        for (Area area : address) {
            System.out.println(area);
        }
        return address;
    }
}
